Package com.cisco.pt.ipc.sim.impl
Class VLANManagerImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ProcessImpl
com.cisco.pt.ipc.sim.impl.VLANManagerImpl
- All Implemented Interfaces:
IPCObject,Process,VLANManager
Information provided by the PKI file:
\class VlanManager
\brief VlanManager holds and manipulates VLANs on routers and switches.
\example network().getDevice("Switch0").getProcess("VlanManager")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionVLANManagerImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionbooleanInformation provided by the PKI file:booleanaddVlanInt(int vlanID) Information provided by the PKI file:booleanchangeVlanName(int vlanID, String name) Information provided by the PKI file:intInformation provided by the PKI file:getVlan(int vlanID) Information provided by the PKI file:getVlanAt(int index) Information provided by the PKI file:getVlanByName(String name) Information provided by the PKI file:intInformation provided by the PKI file:getVlanInt(int vlanID) Information provided by the PKI file:getVlanIntAt(int index) Information provided by the PKI file:intInformation provided by the PKI file:booleanremoveVlan(int vlandID) Information provided by the PKI file:booleanremoveVlanInt(int vlanID) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.sim.impl.ProcessImpl
getOwnerDeviceMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Constructor Details
-
VLANManagerImpl
public VLANManagerImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
getVlan
Information provided by the PKI file:
\brief Returns the VLAN with the specified VLAN number. \param vlanID, the number of the VLAN of interest. \return Vlan, the Vlan object with the specified VLAN number.- Specified by:
getVlanin interfaceVLANManager- Parameters:
vlanID- Takes in a parameter of vlanID- Returns:
- VLAN Returns a VLAN
-
getVlanAt
Information provided by the PKI file:
\brief Returns the VLAN at the specified index. \param index, the index of the VLAN of interest. \return Vlan, the Vlan object at the specified index.- Specified by:
getVlanAtin interfaceVLANManager- Parameters:
index- Takes in a parameter of index- Returns:
- VLAN Returns a VLAN
-
addVlan
Information provided by the PKI file:
\brief Adds a VLAN. \param vlandID, the number for the VLAN. \param vlanName, the name for the VLAN. \return bool, true if successful, otherwise false.- Specified by:
addVlanin interfaceVLANManager- Parameters:
vlandID- Takes in a parameter of vlandIDvlanName- Takes in a parameter of vlanName- Returns:
- boolean Returns a boolean
-
removeVlan
public boolean removeVlan(int vlandID) Information provided by the PKI file:
\brief Removes the VLAN with the specified VLAN number. \param vlandID, the VLAN number of interest. \return bool, true if successful, otherwise false.- Specified by:
removeVlanin interfaceVLANManager- Parameters:
vlandID- Takes in a parameter of vlandID- Returns:
- boolean Returns a boolean
-
getVlanCount
public int getVlanCount()Information provided by the PKI file:
\brief Returns the number of VLANs. \return int, the number of VLANs.- Specified by:
getVlanCountin interfaceVLANManager- Returns:
- int Returns a int
-
getMaxVlans
public int getMaxVlans()Information provided by the PKI file:
\brief Returns the maximum number of VLANs. \return int, the maximum number of VLANs.- Specified by:
getMaxVlansin interfaceVLANManager- Returns:
- int Returns a int
-
getVlanByName
Information provided by the PKI file:
\brief Returns the VLAN with the specified VLAN name. \param name, the name of the VLAN of interest. \return Vlan, the Vlan object with the specified VLAN name.- Specified by:
getVlanByNamein interfaceVLANManager- Parameters:
name- Takes in a parameter of name- Returns:
- VLAN Returns a VLAN
-
changeVlanName
Information provided by the PKI file:
\brief Changes the VLAN name. \param vlanID, the VLAN number of interest. \param name, the name for the VLAN. \return bool, true if successful, otherwise false.- Specified by:
changeVlanNamein interfaceVLANManager- Parameters:
vlanID- Takes in a parameter of vlanIDname- Takes in a parameter of name- Returns:
- boolean Returns a boolean
-
addVlanInt
public boolean addVlanInt(int vlanID) Information provided by the PKI file:
\brief Adds a VLAN interface with the specified VLAN number. \param vlanID, the VLAN number for the VLAN interface. \return bool, true if successful, otherwise false.- Specified by:
addVlanIntin interfaceVLANManager- Parameters:
vlanID- Takes in a parameter of vlanID- Returns:
- boolean Returns a boolean
-
removeVlanInt
public boolean removeVlanInt(int vlanID) Information provided by the PKI file:
\brief Removes the VLAN interface with the specified VLAN number. \param vlanID, the VLAN number of interest. \return bool, true if successful, otherwise false.- Specified by:
removeVlanIntin interfaceVLANManager- Parameters:
vlanID- Takes in a parameter of vlanID- Returns:
- boolean Returns a boolean
-
getVlanInt
Information provided by the PKI file:
\brief Returns the VLAN interface with the specified VLAN number. \param vlanID, the VLAN number of interest. \return RouterPort, the RouterPort object of the VLAN interface with the specified VLAN number.- Specified by:
getVlanIntin interfaceVLANManager- Parameters:
vlanID- Takes in a parameter of vlanID- Returns:
- RouterPort Returns a RouterPort
-
getVlanIntAt
Information provided by the PKI file:
\brief Returns the VLAN interface at the specified index. \param index, the index of the VLAN interface of interest. \return RouterPort, the RouterPort object of the VLAN interface at the specified index.- Specified by:
getVlanIntAtin interfaceVLANManager- Parameters:
index- Takes in a parameter of index- Returns:
- RouterPort Returns a RouterPort
-
getVlanIntCount
public int getVlanIntCount()Information provided by the PKI file:
\brief Returns the number of VLAN interfaces. \return int, the number of VLAN interfaces.- Specified by:
getVlanIntCountin interfaceVLANManager- Returns:
- int Returns a int
-